package com.ddc.study.entity;

import com.google.gson.annotations.SerializedName;

import java.util.Arrays;

import androidx.annotation.NonNull;

/**
 * Created on 2018/7/19.
 *
 * @author lshun
 * @version 1.0
 */
public class User {
    @SerializedName("collectIds")
    public int[] collectIds;
    @SerializedName("email")
    public String email;
    @SerializedName("icon")
    public String icon;
    @SerializedName("id")
    public int id;
    @SerializedName("username")
    public String username;
    @SerializedName("type")
    public int type;
    @SerializedName("password")
    private transient String password;

    public int[] getCollectIds() {
        return collectIds;
    }

    @NonNull
    @Override
    public String toString() {
        return "User{" +
                "collectIds=" + Arrays.toString(collectIds) +
                ", email='" + email + '\'' +
                ", icon='" + icon + '\'' +
                ", id=" + id +
                ", username='" + username + '\'' +
                ", type=" + type +
                ", password='" + password + '\'' +
                '}';
    }
}